package app.base.systemmanage.systemusertypemanage.dao;

import app.base.systemmanage.systemusertypemanage.model.SysUserType;
import app.base.systemmanage.systemusertypemanage.model.SysUserTypeExample;
import app.base.systemmanage.systemusertypemanage.model.SysUserTypeKey;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class SysUserTypeDAOImpl extends SqlMapClientDaoSupport implements SysUserTypeDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public SysUserTypeDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int countByExample(SysUserTypeExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("SYS_USER_TYPE.ibatorgenerated_countByExample", example);
        return count.intValue();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int deleteByExample(SysUserTypeExample example) {
        int rows = getSqlMapClientTemplate().delete("SYS_USER_TYPE.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int deleteByPrimaryKey(SysUserTypeKey key) {
        int rows = getSqlMapClientTemplate().delete("SYS_USER_TYPE.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public void insert(SysUserType record) {
        getSqlMapClientTemplate().insert("SYS_USER_TYPE.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public void insertSelective(SysUserType record) {
        getSqlMapClientTemplate().insert("SYS_USER_TYPE.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    @SuppressWarnings("unchecked")
	public List selectByExample(SysUserTypeExample example) {
        List list = getSqlMapClientTemplate().queryForList("SYS_USER_TYPE.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public SysUserType selectByPrimaryKey(SysUserTypeKey key) {
        SysUserType record = (SysUserType) getSqlMapClientTemplate().queryForObject("SYS_USER_TYPE.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int updateByExampleSelective(SysUserType record, SysUserTypeExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("SYS_USER_TYPE.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int updateByExample(SysUserType record, SysUserTypeExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("SYS_USER_TYPE.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int updateByPrimaryKeySelective(SysUserType record) {
        int rows = getSqlMapClientTemplate().update("SYS_USER_TYPE.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    public int updateByPrimaryKey(SysUserType record) {
        int rows = getSqlMapClientTemplate().update("SYS_USER_TYPE.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table SYS_USER_TYPE
     *
     * @ibatorgenerated Thu Jul 16 15:18:39 CST 2009
     */
    private static class UpdateByExampleParms extends SysUserTypeExample {
        private Object record;

        public UpdateByExampleParms(Object record, SysUserTypeExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
    
    //
    public void insert_0001(SysUserType record) {
        getSqlMapClientTemplate().insert("SYS_USER_TYPE.insert_0001", record);
    }
    
    public int update_0001(SysUserType record) {
        int rows = getSqlMapClientTemplate().update("SYS_USER_TYPE.update_0001", record);
        return rows;
    }
    
     public int count_0001(Map<String, Object> map) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("SYS_USER_TYPE.count_0001", map);
        return count.intValue();    	
    }  
    
    @SuppressWarnings("unchecked")
	public List select_0001(Map<String, Object> map) {
        List list = getSqlMapClientTemplate().queryForList("SYS_USER_TYPE.select_0001", map);
        return list;
    }
    
    @SuppressWarnings("unchecked")
	public List<SysUserType> select_0002(java.util.Map<String, Object> map) {
        List<SysUserType> list = getSqlMapClientTemplate().queryForList("SYS_USER_TYPE.select_0002", map);
        return list;
    }
}